﻿using System;

namespace NServiceBus.Management.ManagementService.Domain
{
    public class Endpoint
    {
        public string Id { get; set; }
        public string Adress { get; set; }
        public DateTime StatusTime { get; set; }

        public override bool Equals(object obj)
        {
            var x = obj as Endpoint;

            if (x == null)
                return false;
            return x.Id == Id;

        }
    }
}
